package com.yupi.yuaiagent.demo.invoke.invoke;

import com.yupi.yuaiagent.demo.invoke.TestApiKey;
import dev.langchain4j.community.model.dashscope.QwenChatModel;

public class LangChainAIInvoke {

    public static void main(String[] args) {
        QwenChatModel qwenChatModel = QwenChatModel.builder()
                .apiKey(TestApiKey.API_KEY)
                .modelName("qwen-max")
                .build();

        String answer = qwenChatModel.chat("我是程序员biubiu，这是我的第一个langChain4j代码");

        System.out.println(answer);
    }
}
